import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SharedModule } from 'shared/shared.module';

import { CodeComponent } from './code/code.component';
import { DynamicComponent } from './dynamic/dynamic.component';
import { PerformComponent } from './perform/perform.component';

const routes: Routes = [
  { path: 'code', component: CodeComponent, data: {title: '代码', module: '/system/setting/code'} },
  { path: 'dynamic', component: DynamicComponent, data: {title: '动态列配置', module: '/system/setting/dynamic'} },
  { path: 'perform', component: PerformComponent, data: {title: '执行', module: '/system/setting/perform'} },
  { path: '', component: PerformComponent }
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})
export class SettingRoutingModule { }
